<?php if (!defined('BASEPATH'))exit('No direct script access allowed');
/**
 * 用户须知模块控制器
 */
class Knower extends MY_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('content_model');
        $this->load->model('cate_model');
        $this->catelist = $this->cate_model->content_cate_list(array('group'=>'uknow','hide'=>0));
    }
    //首页
    function index() {
        $type = $this->catelist[0]['id'];
        $where = array();
        $where['cate_id'] = $type;
        $where['status'] = 1;
        $list = $this->content_model->getList($where);
        $this->assign('type', $type);
        $this->assign('list', $list);
        $this->assign('action', 'knower');
        $this->display('knower/index.html');
    }
}
